/*********************************************************************************
 *       Filename:  transferdata.h
 *    Description:  This file statement of the transferdata.c
 *
 *        Version:  1.0.0(2024/11/28 18:40:07)
 *         Author:  Zhang Long <1318085470@qq.com>
 *      ChangeLog:  1, Release initial version on "2024/11/28 18:40:07"
 ********************************************************************************/
#ifndef _TRANSFERDATA_H_
#define _TRANSFERDATA_H_


typedef struct packet_s
{
	char		id[32];
	char		time[32];
	float		temp;
}packet_t;


extern int sample_and_package_temperature(packet_t *pack);
extern int format_packet_data(packet_t *pack, char *buf, int size);

extern int packet_segmented_unpack(packet_t *pack, char *buf);


#endif

/* ----- #ifndef _TRANSFERDATA_H_  ----- */
